home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 32 / Mac Magazin and MacEasy Magazine CD - Issue 32.iso / Grafik & Text / OzTeX3.0 / TeX-inputs / LaTeX / base / nfssfont.tex (.txt) < prev    next >
LaTeX Document  |  1997-04-24  |  14KB  |  279 lines

  1. %% This is file `nfssfont.tex',
  2. %% generated with the docstrip utility.
  3. %% The original source files were:
  4. %% nfssfont.dtx  (with options: `code')
  5. %% This is a generated file.
  6. %% Copyright 1993 1994 1995 1996 1997
  7. %% The LaTeX3 Project and any individual authors listed elsewhere
  8. %% in this file.
  9. %% For further copyright information, and conditions for modification
  10. %% and distribution, see the file legal.txt, and any other copyright
  11. %% notices in this file.
  12. %% This file is part of the LaTeX2e system.
  13. %% ----------------------------------------
  14. %%   This system is distributed in the hope that it will be useful,
  15. %%   but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. %%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17. %%   For error reports concerning UNCHANGED versions of this file no
  18. %%   more than one year old, see bugs.txt.
  19. %%   Please do not request updates from us directly.  Primary
  20. %%   distribution is through the CTAN archives.
  21. %% IMPORTANT COPYRIGHT NOTICE:
  22. %% You are NOT ALLOWED to distribute this file alone.
  23. %% You are allowed to distribute this file under the condition that it
  24. %% is distributed together with all the files listed in manifest.txt.
  25. %% If you receive only some of these files from someone, complain!
  26. %% Permission is granted to copy this file to another file with a
  27. %% clearly different name and to customize the declarations in that
  28. %% copy to serve the needs of your installation, provided that you
  29. %% comply with the conditions in the file legal.txt.
  30. %% However, NO PERMISSION is granted to generate or to distribute a
  31. %% modified version of this file under its original name.
  32. %% You are NOT ALLOWED to change this file.
  33. %% MODIFICATION ADVICE:
  34. %% If you want to customize this file, it is best to make a copy of
  35. %% the source file(s) from which it was produced.  Use a different
  36. %% name for your copy(ies) and modify the copy(ies); this will ensure
  37. %% that your modifications do not get overwritten when you install a
  38. %% new release of the standard system.  You should also ensure that
  39. %% your modified source file does not generate any modified file with
  40. %% the same name as a standard file.
  41. %% You can then easily distribute your modifications by distributing
  42. %% the modified and renamed copy of the source file, taking care to
  43. %% observe the conditions in legal.txt; this will ensure that other
  44. %% users can safely use your modifications.
  45. %% You will also need to produce your own, suitably named, .ins file to
  46. %% control the generation of files from your source file; this file
  47. %% should contain your own preambles for the files it generates, not
  48. %% those in the standard .ins files.
  49. %% The names of the source files used are shown above.
  50. \def\nfssfontfileversion{v2.0d}
  51. \def\nfssfontfiledate{1994/10/16}
  52. %% \CharacterTable
  53. %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
  54. %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
  55. %%   Digits        \0\1\2\3\4\5\6\7\8\9
  56. %%   Exclamation   \!     Double quote  \"     Hash (number) \#
  57. %%   Dollar        \$     Percent       \%     Ampersand     \&
  58. %%   Acute accent  \'     Left paren    \(     Right paren   \)
  59. %%   Asterisk      \*     Plus          \+     Comma         \,
  60. %%   Minus         \-     Point         \.     Solidus       \/
  61. %%   Colon         \:     Semicolon     \;     Less than     \<
  62. %%   Equals        \=     Greater than  \>     Question mark \?
  63. %%   Commercial at \@     Left bracket  \[     Backslash     \\
  64. %%   Right bracket \]     Circumflex    \^     Underscore    \_
  65. %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
  66. %%   Right brace   \}     Tilde         \~}
  67. \documentstyle{article}               %FMi
  68. \nofiles                              %FMi
  69. \textwidth=470pt                      %FMi
  70. \oddsidemargin=0pt                    %FMi
  71. \textheight=1000pt                    %FMi
  72. \def\sevenrm{\fontsize{7}{9pt}\rmfamily}    %FMi
  73. \typeout{**********************************************}
  74. \typeout{* NFSS font test program version <\nfssfontfileversion>}
  75. \typeout{*}
  76. \typeout{* Follow the instructions}
  77. \typeout{**********************************************}
  78. \typeout{}
  79. \tracinglostchars=0
  80. \tolerance=1000
  81. \raggedbottom
  82. \parindent=0pt
  83. \hyphenpenalty=200
  84. \doublehyphendemerits=30000
  85. \newcount\m \newcount\n \newcount\p \newdimen\dim
  86. \chardef\other=12
  87. \def\today{\ifcase\month\or
  88.   January\or February\or March\or April\or May\or June\or
  89.   July\or August\or September\or October\or November\or December\fi
  90.   \space\number\day, \number\year}
  91. \def\hours{\n=\time \divide\n 60
  92.   \m=-\n \multiply\m 60 \advance\m \time
  93.   \twodigits\n\twodigits\m}
  94. \def\twodigits#1{\ifnum #1<10 0\fi \number#1}
  95. \def\init{\message{^^JName of the font to test = }
  96.   \read-1 to\fontname \startfont
  97.   \message{Now type a test command (\string\help\space for help):}}
  98. \def\startfont{\font\testfont=\fontname
  99.   \leftline{\sevenrm Test of \fontname\unskip\ on \today\ at \hours}
  100.   \medskip
  101.   \testfont \setbaselineskip
  102.   \ifdim\fontdimen6\testfont<10pt \rightskip=0pt plus 20pt
  103.   \else\rightskip=0pt plus 2em \fi
  104.   \spaceskip=\fontdimen2\testfont % space between words (\raggedright)
  105.   \xspaceskip=\fontdimen2\testfont \advance\xspaceskip
  106.   by\fontdimen7\testfont}
  107. {\catcode`\|=0 \catcode`\\=\other
  108. |gdef|help{|message{%
  109. \init switches to another font;^^J%
  110. \stop or \bye finishes the run;^^J%
  111. \table prints the font layout in tabular format;^^J%
  112. \text prints a sample text, assuming TeX text font conventions;^^J%
  113. \sample combines \table and \text;^^J%
  114. \mixture mixes a background character with a series of others;^^J%
  115. \alternation interleaves a background character with a series;^^J%
  116. \alphabet prints all lowercase letters within a given background;^^J%
  117. \ALPHABET prints all uppercase letters within a given background;^^J%
  118. \series prints a series of letters within a given background;^^J%
  119. \lowers prints a comprehensive test of lowercase;^^J%
  120. \uppers prints a comprehensive test of uppercase;^^J%
  121. \digits prints a comprehensive test of numerals;^^J%
  122. \math prints a comprehensive test of TeX math italic;^^J%
  123. \names prints a text that mixes upper and lower case;^^J%
  124. \punct prints a punctuation test;^^J%
  125. \bigtest combines many of the above routines;^^J%
  126. \help repeats this message;^^J%
  127. and you can use ordinary TeX commands (e.g., to \input a file).}}}
  128. \def\setbaselineskip{\setbox0=\hbox{\n=0
  129. \loop\char\n \ifnum \n<255 \advance\n 1 \repeat}
  130. \baselineskip=6pt \advance\baselineskip\ht0 \advance\baselineskip\dp0 }
  131. \def\setchar#1{{\escapechar-1\message{\string#1 character = }%
  132.   \def\do##1{\catcode`##1=\other}\dospecials
  133.   \read-1 to\next
  134.   \expandafter\finsetchar\next\next#1}}
  135. \def\finsetchar#1#2\next#3{\global\chardef#3=`#1
  136.   \ifnum #3=`\# \global\chardef#3=#2 \fi}
  137. \def\promptthree{\setchar\background
  138.   \setchar\starting \setchar\ending}
  139. \def\mixture{\promptthree \domix\mixpattern}
  140. \def\alternation{\promptthree \domix\altpattern}
  141. \def\mixpattern{\0\1\0\0\1\1\0\0\0\1\1\1\0\1}
  142. \def\altpattern{\0\1\0\1\0\1\0\1\0\1\0\1\0\1\0\1\0}
  143. \def\domix#1{\par\chardef\0=\background \n=\starting
  144.   \loop \chardef\1=\n #1\endgraf
  145.   \ifnum \n<\ending \advance\n 1 \repeat}
  146. \def\!{\discretionary{\background}{\background}{\background}}
  147. \def\series{\promptthree \!\doseries\starting\ending\par}
  148. \def\doseries#1#2{\n=#1\loop\char\n\!\ifnum\n<#2\advance\n 1 \repeat}
  149. \def\complower{\!\doseries{`a}{`z}\doseries{'31}{'34}\par}
  150. \def\compupper{\!\doseries{`A}{`Z}\doseries{'35}{'37}\par}
  151. \def\compdigs{\!\doseries{`0}{`9}\par}
  152. \def\alphabet{\setchar\background\complower}
  153. \def\ALPHABET{\setchar\background\compupper}
  154. \def\lowers{\docomprehensive\complower{`a}{`z}{'31}{'34}}
  155. \def\uppers{\docomprehensive\compupper{`A}{`Z}{'35}{'37}}
  156. \def\digits{\docomprehensive\compdigs{`0}{`4}{`5}{`9}}
  157. \def\docomprehensive#1#2#3#4#5{\par\chardef\background=#2
  158.   \loop{#1} \ifnum\background<#3\m=\background\advance\m 1
  159.   \chardef\background=\m \repeat \chardef\background=#4
  160.   \loop{#1} \ifnum\background<#5\m=\background\advance\m 1
  161.   \chardef\background=\m \repeat}
  162. \def\names{ {\AA}ngel\aa\ Beatrice Claire
  163.   Diana \'Erica Fran\c{c}oise Ginette H\'el\`ene Iris
  164.   Jackie K\=aren {\L}au\.ra Mar{\'\i}a N\H{a}ta{\l}{\u\i}e {\O}ctave
  165.   Pauline Qu\^eneau Roxanne Sabine T\~a{\'\j}a Ur\v{s}ula
  166.   Vivian Wendy Xanthippe Yv{\o}nne Z\"azilie\par}
  167. \def\punct{\par\dopunct{min}\dopunct{pig}\dopunct{hid}
  168.   \dopunct{HIE}\dopunct{TIP}\dopunct{fluff}
  169.   \$1,234.56 + 7/8 = 9\% @ \#0\par}
  170. \def\dopunct#1{#1,\ #1:\ #1;\ `#1'\ ?`#1?\ !`#1!\ (#1)\ [#1]\
  171.                #1*\ #1.\par}
  172. \def\bigtest{\sample
  173.   hamburgefonstiv HAMBURGEFONSTIV\par
  174.   \names \punct \lowers \uppers \digits}
  175. \def\math{\textfont1=\testfont \skewchar\testfont=\skewtrial
  176.  \mathchardef\Gamma="100 \mathchardef\Delta="101
  177.  \mathchardef\Theta="102 \mathchardef\Lambda="103 \mathchardef\Xi="104
  178.  \mathchardef\Pi="105 \mathchardef\Sigma="106 \mathchardef\Upsilon="107
  179.  \mathchardef\Phi="108 \mathchardef\Psi="109 \mathchardef\Omega="10A
  180.  \def\ii{i} \def\jj{j}
  181.  \def\\##1{|##1|+}\mathtrial
  182.  \def\\##1{##1_2+}\mathtrial
  183.  \def\\##1{##1^2+}\mathtrial
  184.  \def\\##1{##1/2+}\mathtrial
  185.  \def\\##1{2/##1+}\mathtrial
  186.  \def\\##1{##1,{}+}\mathtrial
  187.  \def\\##1{d##1+}\mathtrial
  188.  \let\ii=\imath \let\jj=\jmath \def\\##1{\hat##1+}\mathtrial}
  189. \newcount\skewtrial \skewtrial='177
  190. \def\mathtrial{$\\A \\B \\C \\D \\E \\F \\G \\H \\I \\J \\K \\L \\M \\N
  191.  \\O \\P \\Q \\R \\S \\T \\U \\V \\W \\X \\Y \\Z \\a \\b \\c \\d \\e \\f
  192.  \\g \\h \\\ii \\\jj \\k \\l \\m \\n \\o \\p \\q \\r \\s \\t \\u \\v \\w
  193.  \\x \\y \\z \\\alpha \\\beta \\\gamma \\\delta \\\epsilon \\\zeta
  194.  \\\eta \\\theta \\\iota \\\kappa \\\lambda \\\mu \\\nu \\\xi \\\pi
  195.  \\\rho \\\sigma \\\tau \\\upsilon \\\phi \\\chi \\\psi \\\omega
  196.  \\\vartheta \\\varpi \\\varphi \\\Gamma \\\Delta \\\Theta \\\Lambda
  197.  \\\Xi \\\Pi \\\Sigma \\\Upsilon \\\Phi \\\Psi \\\Omega \\\partial
  198.  \\\ell \\\wp$\par}
  199. \def\mathsy{\begingroup\skewtrial='060 % for math symbol font tests
  200.  \def\mathtrial{$\\A \\B \\C \\D \\E \\F \\G \\H \\I \\J \\K \\L
  201.   \\M \\N \\O \\P \\Q \\R \\S \\T \\U \\V \\W \\X \\Y \\Z$\par}
  202.  \math\endgroup}
  203. \def\oct#1{\hbox{\rmfamily\'{}\kern-.2em\itshape
  204.            #1\/\kern.05em}} % octal constant
  205. \def\hex#1{\hbox{\rmfamily\H{}\ttfamily#1}} % hexadecimal constant
  206. \def\setdigs#1"#2{\gdef\h{#2}% \h=hex prefix; \0\1=corresponding octal
  207.  \m=\n \divide\m by 64 \xdef\0{\the\m}%
  208.  \multiply\m by-64 \advance\m by\n \divide\m by 8 \xdef\1{\the\m}}
  209. \def\testrow{\setbox0=\hbox{\penalty 1\def\\{\char"\h}%
  210.  \\0\\1\\2\\3\\4\\5\\6\\7\\8\\9\\A\\B\\C\\D\\E\\F%
  211.  \global\p=\lastpenalty}} % \p=1 if none of the characters exist
  212. \def\oddline{\cr
  213.   \noalign{\nointerlineskip}
  214.   \multispan{19}\hrulefill&
  215.   \setbox0=\hbox{\lower 2.3pt\hbox{\hex{\h x}}}\smash{\box0}\cr
  216.   \noalign{\nointerlineskip}}
  217. \newif\ifskipping
  218. \def\evenline{\loop\skippingfalse
  219.  \ifnum\n<256 \m=\n \divide\m 16 \chardef\next=\m
  220.  \expandafter\setdigs\meaning\next \testrow
  221.  \ifnum\p=1 \skippingtrue \fi\fi
  222.  \ifskipping \global\advance\n 16 \repeat
  223.  \ifnum\n=256 \let\next=\endchart\else\let\next=\morechart\fi
  224.  \next}
  225. \def\morechart{\cr\noalign{\hrule\penalty5000}
  226.  \chartline \oddline \m=\1 \advance\m 1 \xdef\1{\the\m}
  227.  \chartline \evenline}
  228. \def\chartline{&\oct{\0\1x}&&\:&&\:&&\:&&\:&&\:&&\:&&\:&&\:&&}
  229. \def\chartstrut{\lower4.5pt\vbox to14pt{}}
  230. \def\table{$$\global\n=0
  231.   \halign to\hsize\bgroup
  232.     \chartstrut##\tabskip0pt plus10pt&
  233.     &\hfil##\hfil&\vrule##\cr
  234.     \lower6.5pt\null
  235.     &&&\oct0&&\oct1&&\oct2&&\oct3&&\oct4&&\oct5&&\oct6&&\oct7&\evenline}
  236. \def\endchart{\cr\noalign{\hrule}
  237.   \raise11.5pt\null&&&\hex 8&&\hex 9&&\hex A&&\hex B&
  238.   &\hex C&&\hex D&&\hex E&&\hex F&\cr\egroup$$\par}
  239. \def\:{\setbox0=\hbox{\char\n}%
  240.   \ifdim\ht0>7.5pt\reposition
  241.   \else\ifdim\dp0>2.5pt\reposition\fi\fi
  242.   \box0\global\advance\n 1 }
  243. \def\reposition{\setbox0=\vbox{\kern2pt\box0}\dim=\dp0
  244.   \advance\dim 2pt \dp0=\dim}
  245. \def\centerlargechars{
  246.   \def\reposition{\setbox0=\hbox{$\vcenter{\kern2pt\box0\kern2pt}$}}}
  247. \def\text{{\advance\baselineskip-4pt
  248. \setbox0=\hbox{abcdefghijklmnopqrstuvwxyz}
  249. \ifdim\hsize>2\wd0
  250.    \ifdim 15pc>2\wd0 \hsize=15pc \else \hsize=2\wd0 \fi
  251. On November 14, 1885, Senator \& Mrs.~Leland Stanford called together
  252. at their San Francisco mansion the 24~prominent men who had been
  253. chosen as the first trustees of The Leland Stanford Junior University.
  254. They handed to the board the Founding Grant of the University, which
  255. they had executed three days before. This document---with various
  256. amendments, legislative acts, and court decrees---remains as the
  257. University's charter.  In bold, sweeping language it stipulates that
  258. the objectives of the University are ``to qualify students for
  259. personal success and direct usefulness in life; and to promote the
  260. publick welfare by exercising an influence in behalf of humanity and
  261. civilization, teaching the blessings of liberty regulated by law, and
  262. inculcating love and reverence for the great principles of government
  263. as derived from the inalienable rights of man to life, liberty, and
  264. the pursuit of happiness.'' \moretext
  265. (!`THE DAZED BROWN FOX QUICKLY GAVE 12345--67890 JUMPS!)\par}}
  266. \def\moretext{?`But aren't Kafka's Schlo{\ss} and {\AE}sop's
  267. {\OE}uvres often na{\"\i}ve vis-\`a-vis the d{\ae}monic ph{\oe}nix's
  268. official r\^ole in fluffy souffl\'es? }
  269. \def\omitaccents{\let\moretext=\relax}
  270. \def\sample{\table\text}
  271. \def\bye{\end{document}}       %FMi
  272. \let\oldtypeout\typeout        %FMi
  273. \def\typeout#1{}               %FMi
  274. \begin{document}               %FMi
  275. \let\typeout\oldtypeout        %FMi
  276. \ifx\noinit!\else\init\fi
  277. \endinput
  278. %% End of file `nfssfont.tex'.
  279.